const fs = require('fs');

const util = require('util');

const mineReadFile = util.promisify(fs.readFile);

// mineReadFile('./file/1.js').then(value1=>{
//     mineReadFile('./file/2.js').then(value2=>{
//         mineReadFile('./file/3.js').then(value3=>{
//             let arr = [value1,value2,value3]
//             console.log(arr.join(''));
//         })
//     })
// })

async function main() {
    let value1 = await mineReadFile('./file/1.js');
    let value2 = await mineReadFile('./file/2.js');
    let value3 = await mineReadFile('./file/3.js');
    let arr = [value1, value2, value3]
    console.log(arr.join(''));
}
main();

